package com.intretech.umsin.system.api;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.intretech.umsin.common.web.ApiResult;
import com.intretech.umsin.system.param.SysUserPostParam;
import com.intretech.umsin.system.vo.SysUserPostVo;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
* @version V1.0
* 用户与岗位关联: sys_user_post 为其他服务提供内部调用接口 API.
* @InterfaceName: SysUserPostApi
* @Description: 用户与岗位关联:sys_user_post 为其他服务提供内部调用接口 API.
* @author: 李启联
* @date:   2022-8-16 16:44:08
* @Copyright: Copyright (c) 2022
*/

public interface SysUserPostApi {

    @GetMapping("/system/sysuserpost/get/{id}")
    public ApiResult<SysUserPostVo> querySysUserPostById(@PathVariable("id") String id);

    @PostMapping("/system/sysuserpost/listByIds")
    public ApiResult<List<SysUserPostVo>> querySysUserPostByIds(@RequestBody List<String> ids);

    @PostMapping("/system/sysuserpost/page/{pageNo}/{pageSize}")
    public ApiResult<IPage<SysUserPostVo>> querySysUserPostForPage(@RequestBody SysUserPostParam params, @PathVariable("pageNo") Integer pageNo, @PathVariable("pageSize") Integer pageSize);

    @PostMapping("/system/sysuserpost/list")
    public ApiResult<List<SysUserPostVo>> querySysUserPostForList(@RequestBody SysUserPostParam params);

    @PostMapping("/system/sysuserpost/add")
    public ApiResult<SysUserPostVo> addSysUserPost(@RequestBody SysUserPostVo vo);

    @PostMapping("/system/sysuserpost/adds")
    public ApiResult<List<SysUserPostVo>> addsSysUserPost(@RequestBody List<SysUserPostVo> voList);

    @PutMapping("/system/sysuserpost/modify")
    public ApiResult<SysUserPostVo> modifySysUserPost(@RequestBody SysUserPostVo vo);

    @PutMapping("/system/sysuserpost/modifys")
    public ApiResult<List<SysUserPostVo>> modifysSysUserPost(@RequestBody List<SysUserPostVo> voList);

    @DeleteMapping("/system/sysuserpost/remove/{id}")
    public ApiResult<Void> removeSysUserPost(@PathVariable("id") String id);

    @DeleteMapping("/system/sysuserpost/removes")
    public ApiResult<Void> removesSysUserPost(@RequestBody List<String> ids);



}